what is money and how does it work